package com.rankeiot.core.inner.argumet;

import org.sagacity.sqltoy.model.Page;
import org.sagacity.sqltoy.model.QueryExecutor;

import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

public interface IPageAble extends Serializable {
    int getPageSize();
    long getPageNo();

    boolean isSkipQueryCount();
    default Page page(){
        Page page= new Page(Math.max(1,getPageSize()),Math.max(1,getPageNo()));
        page.setSkipQueryCount(isSkipQueryCount());
        return page;
    }
}
